<div class="modal-header">
    <h3 class="modal-title">编辑比赛信息</h3>
</div>
<div class="modal-body">
    <form role="form" name="form">        
         <div class="form-group">
             <label>序号</label>
			 <label>{{id}}</label>
         </div>
        <div class="form-group">
            <label>比赛名称</label>
            <input type="text" class="form-control" name="name" data-ng-model="name" placeholder="输入名称" autofocus ng-pattern="restrictNumber"
                ng-class="{'input--error': form.name.$valid == false, 'input': form.name.$valid == true}">               
            <span class="chars" ng-class="{'chars--active': form.name.$valid == false, 'chars': form.name.$valid == true}">仅限 [中文A-Za-z0-9_- ]字符.</span>
            <span class="help-block" data-ng-show="errorClass == 'has-error name'" data-ng-bind="errorMessage"></span>
		</div>
		<div class="form-group">
		    <label>比赛地点</label>           
		    <input type="text" class="form-control" name="didian" data-ng-model="didian" placeholder="输入地点" >
		        <span class="help-block" data-ng-show="errorClass == 'has-error didian'" data-ng-bind="errorMessage"></span>
		</div>
		<div class="form-group">
		    <label>比赛类型</label>       
			<select name="leixin" data-ng-model="leixin" >
				<option value ="1">ALL</option>
				<option value ="2">EDITOR</option>
			</select>	
		    
		</div>
		<div class="form-group">
		    <label>联系人</label>           
		    <input type="text" class="form-control" name="lianxiren" data-ng-model="lianxiren" placeholder="输入联系人" >
		        <span class="help-block" data-ng-show="errorClass == 'has-error lianxiren'" data-ng-bind="errorMessage"></span>
		</div>
		<div class="form-group">
		    <label>开始比赛时间</label>           
		    <wui-date format="yyyy-mm-dd hh:mm:ss"
		              placeholder="请选择或输入日期"
		              id="date1"
		              btns="{'ok':'确定','now':'此刻'}"
		              ng-model="sdate">
		    </wui-date>
			<span class="help-block" data-ng-show="errorClass == 'has-error sdate'" data-ng-bind="errorMessage"></span>
		</div>
		<div class="form-group">
		    <label>比赛时长（分钟）</label>           
		    <input type="text" class="form-control" name="bstime" data-ng-model="bstime" placeholder="输入时长" autofocus ng-pattern="restrictNumber2"
		        ng-class="{'input--error': form.bstime.$valid == false, 'input': form.name.$valid == true}">
		        <span class="chars" ng-class="{'chars--active': form.bstime.$valid == false, 'chars': form.bstime.$valid == true}">仅限 [0-9]字符</span>
		        <span class="help-block" data-ng-show="errorClass == 'has-error bstime'" data-ng-bind="errorMessage"></span>
		</div>
		<div class="form-group">
		    <label>备注</label>           
		    <input type="text" class="form-control" name="beizhu" data-ng-model="beizhu" placeholder="输入备注" >
		</div>
         <input type="hidden" name="id" data-ng-model="id">
         <input type="hidden" name="oldname" value="{{name}}" />
        <div class="modal-footer">
            <button class="btn btn-success btn-flat {{blockButtonsClass}}" ng-disabled="!(form.$valid && name && sdate && bstime)"
                type="button" ng-click="editmatch()">保存</button>
            <button class="btn btn-default btn-flat" type="button" ng-click="closeModal()">取消</button>
        </div>
    </form>
</div>
